From a07d4bc5245f6995e8723c48be12c8034501b7a2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 1 Feb 1994 06:49:18 +0000 Subject: [PATCH] (dumpglyphs): Don't crash for invalid face code. --- src/xterm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index e471311da5a..cc7f9aa7089 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -524,11 +524,11 @@ dumpglyphs (f, left, top, gp, n, hl) /* First look at the face of the text itself. */ if (cf != 0) { - /* The face codes on the glyphs must be valid indices into the - frame's face table. */ + /* It's possible for the display table to specify + a face code that is out of range. Use 0 in that case. */ if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f) || FRAME_COMPUTED_FACES (f) [cf] == 0) - abort (); + cf = 0; if (cf == 1) face = FRAME_MODE_LINE_FACE (f); -- 2.30.2